package com.woniuxy.mapper;

import java.util.List;

import org.apache.ibatis.annotations.*;

import com.woniuxy.entity.CategoryOne;

@Mapper
public interface CategoryOneMapper {
	
	@Select("select * from category_one")
	public List<CategoryOne> findCategoryOne();
	
	 @Insert("insert into category_one values(default,#{type})")
	public int addCategoryOne(String type);
	 
	 @Delete("delete from category_one where ct_id=#{ct_id}")
	 public int delCategoryOne(int ct_id);
	 
	 @Update("update category_one set type=#{type} where ct_id=#{ct_id}")
	 public int updateCategoryOne(String type,int ct_id); 
	 
	
}
